package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 漫画分类业务对象 t_caricature_category
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CaricatureCategoryBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 父ID
     */
    @NotNull(message = "父ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer orderNum;

    /**
     * 显示状态（0显示 1隐藏）
     */
    @NotBlank(message = "显示状态（0显示 1隐藏）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String visible;

    /**
     * 分类图标
     */
    @NotBlank(message = "分类图标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String icon;

    /**
     * 备注
     */
    private String remark;


}
